﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student:Person
    {
        private string _major;
        private string _class;

        public string Major { get; set; }
        public string Class { get; set; }

        public Student(int id,string name,string sex,double cardid,double tel,string major,string clas)
        {
            this.Id = id;
            this.Name = name;
            this.Sex = sex;
            this.Cardid = cardid;
            this.Tel = tel;
            this.Major = major;
            this.Class = clas;
        }
        public Student()
        { }

        public void DaYinXue()
        {
            Console.WriteLine("我的id是{0},我的名字是{1}，我的性别是{2}，我的身份证号是{3}" +
                "，我的联系方式是{4}，我的专业是{5},我的班级是{6}", this.Id, this.Name, this.Sex,
                this.Cardid, this.Tel, this.Major, this.Class
                );
        }
    }
}
